package org.taobao.ibatiside.db;

import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.modelbase.sql.datatypes.DataType;
import org.eclipse.datatools.modelbase.sql.query.QueryStatement;
import org.eclipse.datatools.modelbase.sql.tables.Table;

public interface IDTPFacade {
	public static final String PROFILE_ORACLE ="org.eclipse.datatools.enablement.oracle.connectionProfile";
	public static final String PROFILE_MYSQL="org.eclipse.datatools.enablement.mysql.connectionProfile";
	public static final String PROFILE_MSSQL="org.eclipse.datatools.enablement.ibm.db2.iseries.connectionProfile";
	public String getSampleValue(IConnectionProfile profile, DataType type);
	public String getIdentifierQuoteString(IConnectionProfile icp);
	public Table getOperationalTable(QueryStatement statement);
	public String getJavaType(IConnectionProfile profile, int jdbcType);
	public String getSelectKeySampleSql(IConnectionProfile profile);
}
